From: Andrew Cooper Date: Wed, 4 Dec 2019 18:21:04 +0000 (+0000) Subject: x86/vmx: Shrink TASK_SWITCH's hvm_task_switch_reason reasons[] X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~712 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=4e9929f5bde62e19653a4c7f5792648f56ef35ab;p=xen.git x86/vmx: Shrink TASK_SWITCH's hvm_task_switch_reason reasons[] No need to use 4-byte integers to store two bits of information. Signed-off-by: Andrew Cooper Reviewed-by: Kevin Tian Reviewed-by: Jan Beulich --- diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index 8debf6be3e..f6350daf4b 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -3979,7 +3979,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs) vmx_update_cpu_exec_control(v); break; case EXIT_REASON_TASK_SWITCH: { - static const enum hvm_task_switch_reason reasons[] = { + static const uint8_t reasons[] = { TSW_call_or_int, TSW_iret, TSW_jmp, TSW_call_or_int }; unsigned int inst_len, source;